import request from '@/utils/request'

// 查询排班值班关系表列表
export function listClass_manage(query) {
  return request({
    url: '/eamp/class_manage/list',
    method: 'get',
    params: query
  })
}

// 查询排班值班关系表详细
export function getClass_manage(classId) {
  return request({
    url: '/eamp/class_manage/' + classId,
    method: 'get'
  })
}

// 新增排班值班关系表
export function addClass_manage(data) {
  return request({
    url: '/eamp/class_manage',
    method: 'post',
    data: data
  })
}

// 修改排班值班关系表
export function updateClass_manage(data) {
  return request({
    url: '/eamp/class_manage',
    method: 'put',
    data: data
  })
}

// 删除排班值班关系表
export function delClass_manage(classId) {
  return request({
    url: '/eamp/class_manage/' + classId,
    method: 'delete'
  })
}


// 发起排班值班关系表
export function applySend(data) {
  return request({
    url: '/eamp/class_manage/applySend',
    method: 'post',
    data: data
  })
}

export function getDept(){
  return request({
    url:'eamp/class_manage/getAffiliation',
    method:'post',
  })
}

export function getUsAndDe(query){
  return request({
    url:'eamp/class_manage/getUsAndDe',
    method:'get',
    params: query
  })
}
